package com.jh.paymentchannel.repository;

import com.jh.paymentchannel.pojo.CongMingOrder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface CongMingOrderRepository extends JpaRepository<CongMingOrder, Long>, JpaSpecificationExecutor<CongMingOrder> {
    @Query("select c from CongMingOrder c where c.orderId = :orderId")
    CongMingOrder getByOrder(@Param("orderId") String orderId);
}
